package com.jsmile.cloud.authc.api.req;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年04月01日 04:45:35
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ReqSysUserLogin {

    @ApiModelProperty(value = "用户名、联系电话、邮箱")
    @NotBlank
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "验证码")
    private String captcha;

    @ApiModelProperty(value = "登录类型 username用户名密码登录 mobile手机或邮箱验证码登录")
    @NotBlank
    private String loginType;

    @ApiModelProperty(value = "1:运营用户")
    @NotNull
    private Integer userType;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;
}
